//
//  WaterFlowLayout.h
//  LessonUICollectionView
//
//  Created by lanou on 16/3/8.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WaterFlowLayout;
@protocol WaterFlowLayoutDelegate <NSObject>
// 根据indexPath获取到对应item的高度
- (CGFloat)waterFlowLayout:(WaterFlowLayout *)layout heightForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface WaterFlowLayout : UICollectionViewLayout


// item的大小
@property (nonatomic, assign) CGSize itemSize;
// 分区间距
@property (nonatomic, assign) UIEdgeInsets sectionInset;
// 列数
@property (nonatomic, assign) NSInteger numberOfColumns;
// item之间的空隙
@property (nonatomic, assign) CGFloat itemSpacing;
// 代理
@property (nonatomic, assign) id<WaterFlowLayoutDelegate> delegate;

@end
